package com.test.pojo;

import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.Table;

import java.io.Serializable;
import java.util.Date;


@Table(name="anytable")   // 对应数据库表  anytable
public class People  implements Serializable {

    private Integer age ;

    @AutoID               //  @AutoID 指定为自增主键   如果属性名和数据库 字段对应  不写也行 beetsql会根据数据库默认设置为自增主键
    private Integer id ;
    private String name ;
    private Date createDate ;

    public People(Integer age, Integer id, String name, Date createDate) {
        this.age = age;
        this.id = id;
        this.name = name;
        this.createDate = createDate;
    }

    public People() {
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }


    @Override
    public String toString() {
        return "People{" +
                "age=" + age +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", createDate=" + createDate +
                '}';
    }
}
